package com.zooltech.samples.jsonlibtest;

import java.util.Date;
import java.util.Hashtable;
import java.util.Map;

/**
 * @author yinxb
 * 
 */
public class Group {
	private Map<String, User> users = new Hashtable<String, User>();

	private Date updateTime = null;

	/**
	 * @return the updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the users
	 */
	public Map<String, User> getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(Map<String, User> users) {
		this.users = users;
	}

	/**
	 * @param user
	 */
	public void addUser(User user) {
		users.put(user.getName(), user);
	}

	/**
	 * @param name
	 * @return User
	 */
	public User getUser(String name) {
		return users.get(name);
	}
}
